// @Author: Leen Van Pelt
package Exceptions;

public class TooManyCharactersException extends Exception
{
	private Integer maxNumberOfCharacters = 0;
	private static final long serialVersionUID = 1L;
	
	public TooManyCharactersException(int thisMaxNumberOfCharacters)
	{
		maxNumberOfCharacters = thisMaxNumberOfCharacters;
	}
	
	@Override
	public String getMessage()
	{
		return "Het aantal ingegeven karakters is te hoog. Het maximum is: " + maxNumberOfCharacters.toString();
	}
	
}
